package com.aaa.doctor.controller.api;


import com.aaa.doctor.feign.ApiRegisteredFeign;
import com.aaa.entity.RegisteredItem;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/doctor/api")
public class ApiRegisteredFeignController {

    @Resource
    private ApiRegisteredFeign apiRegisteredFeign;

    /**
     * 远程调用system服务
     * 查询所有挂号项目信息
     * @return
     */
    @GetMapping("/getRegisteredItem")
    public Result<List<RegisteredItem>> getRegisteredItem() {
        List<RegisteredItem> list = apiRegisteredFeign.getList();
        return new Result<>(200,"查询所有挂号项目信息成功",list);
    }
}
